reset: update help output
authorMicah Abbott <miabbott@redhat.com>
Thu, 23 Apr 2015 18:11:33 +0000 (14:11 -0400)
committerColin Walters <walters@verbum.org>
Thu, 23 Apr 2015 18:32:11 +0000 (14:32 -0400)
The inline help for 'ostree reset' now correctly shows that it
requires a REF and a COMMIT as arguments.

src/ostree/ot-builtin-reset.c

index 71655438b088795137cd61c1ff48e36ecfe65a34..c581c92ae463c49b73570760b250ccf2d19eb703 100644 (file)
@@ -63,7 +63,7 @@ ostree_builtin_reset (int           argc,
   gs_free gchar *current = NULL;
   gs_free gchar *checksum = NULL;
 
-  context = g_option_context_new ("[ARG] - Reset a ref to a previous commit");
+  context = g_option_context_new ("REF COMMIT - Reset a REF to a previous COMMIT");
 
   if (!ostree_option_context_parse (context, options, &argc, &argv, OSTREE_BUILTIN_FLAG_NONE, &repo, cancellable, error))
     goto out;
@@ -73,7 +73,7 @@ ostree_builtin_reset (int           argc,
 
   if (argc <= 2)
     {
-      ot_util_usage_error (context, "A ref and commit argument is required", error);
+      ot_util_usage_error (context, "A REF and COMMIT argument is required", error);
       goto out;
     }
   ref = argv[1];